<?php
?>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--><html lang="en"> <!--<![endif]-->

    <!-- BEGIN HEAD -->
    <head>
        <meta charset="utf-8" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <meta content="width=device-width, initial-scale=1.0" name="viewport" />
        <link rel="shortcut icon" href="<?php echo Yii::app()->theme->baseUrl; ?>/images/favicon.ico" type="image/x-icon">
        <link rel="icon" href="<?php echo Yii::app()->theme->baseUrl; ?>/images/favicon.ico" type="image/x-icon">

        <!-- CSS FILES -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/fonts/font-awesome.css" />
        <!--<link rel="stylesheet" type="text/css" href="<? php  echo Yii::app()->theme->baseUrl; ?>/css/style.css" />-->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style-responsive.css" />
        <!--<link rel="stylesheet" type="text/css" href="<? php echo Yii::app()->theme->baseUrl; ?>/css/jquery.selectBox.css" />-->
        <!--<link rel="stylesheet" type="text/css" href="<? php echo Yii::app()->theme->baseUrl; ?>/css/kanban.css" />-->
        <!--<link rel="stylesheet" type="text/css" href="<? php echo Yii::app()->theme->baseUrl; ?>/css/custom-fixes.css" />-->
        <!--<link rel="stylesheet" type="text/css" href="<? php echo Yii::app()->theme->baseUrl; ?>/css/reports.css" />-->

        <script>
            var baseUrl = "<?php print Yii::app()->baseUrl . '/'; ?>";
            var themeUrl = "<?php print Yii::app()->theme->baseUrl . '/'; ?>";
            var user_id = "<?php print Yii::app()->user->id; ?>";
        </script>
    </head>
    <!-- END HEAD -->

    <!-- BEGIN BODY -->
    <body class="fixed-top">

        <!-- BEGIN CONTAINER -->
       
            <!-- BEGIN PAGE -->  
            <div id="main-content">
                <!-- BEGIN PAGE CONTAINER-->
                <div class="container-fluid">
                    <!-- BEGIN PAGE HEADER-->
                    <!-- FLASH MESSAGES -->
                    <div class="row-fluid">
                        <div id="maiMessages" class="flash-messages">
                            <?php
                            $messages = Yii::app()->user->getFlashes();
                            if ($messages) {
                                foreach ($messages as $key => $message) {
                                    echo '<div class="alert alert-' . $key . '">'
                                    . '<button data-dismiss="alert" class="close" type="button">×</button>'
                                    . $message . "</div>\n";
                                }
                            }
                            ?>
                        </div>
                    </div>
                    <!-- END PAGE HEADER-->

                    <!-- BEGIN PAGE CONTENT-->
                    <div class="row-fluid">
                        <?php echo $content; ?>
                    </div>
                    <!-- END PAGE CONTENT-->    
                    <?php ?>
                </div>
                <!-- END PAGE CONTAINER-->
            </div>
            <!-- END PAGE -->  
        <!-- END CONTAINER -->

        <!-- MAIN MODAL -->
        

        <!-- END MAIN MODAL -->

        <!-- BEGIN FOOTER -->
        <div id="footer">
            <?php echo date('Y') ?> &copy; Tradesystem
        </div>
        <!-- END FOOTER -->

        <!-- BEGIN JAVASCRIPTS -->
        <!-- Load javascripts at bottom, this will reduce page load time -->
        <!--<script src="<? php echo Yii::app()->theme->baseUrl; ?>/js/jquery.slimscroll.min.js" type="text/javascript"></script>-->
        <!--<script src="<? php echo Yii::app()->theme->baseUrl; ?>/js/jquery.nicescroll.js" type="text/javascript"></script>-->
        <!--<script src="<? php echo Yii::app()->theme->baseUrl; ?>/js/jquery.selectBox.js" type="text/javascript"></script>-->
        <!--<script src="<? php echo Yii::app()->theme->baseUrl; ?>/js/_alerta.js" type="text/javascript"></script>-->
        <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.mask.min.js" type="text/javascript"></script>
        <!--common script for all pages-->
        <!--<script src="<? php echo Yii::app()->theme->baseUrl; ?>/js/common-scripts.js"></script>-->

        <!-- END JAVASCRIPTS -->   

    </body>
    <!-- END BODY -->
</html>